package test;

import sun.reflect.generics.reflectiveObjects.NotImplementedException;
import test.Weapon.WeaponType;

public class WeaponFactory {

	public static Weapon get(WeaponType type){
		switch(type){
		case BASIC_GUN:
			return new BasicGun();
			//nbr
		case FAST_GUN:
			return new FastGun();
			//nbr
		case SUPER_FAST_GUN:
			return new SuperFastGun();
			default:
				throw new NotImplementedException();
			
		}
	}
	
}
